import request from '@/utils/request'

// 分页查询仓库
export const getWarehouseList = params => request.get('/api/warehouse/page', { params })

// 修改仓库
export const setWarehouse = data => request.put('/api/warehouse', data)

// 删除仓库
export const delWarehouse = params => request.delete('/api/warehouse', { params })

// 新增仓库
export const addWarehouse = data => request.post('/api/warehouse', data)

// 查询仓库
export const getWarehouseDetails = id => request.get(`/api/warehouse/${id}`)

// 查询全部仓库
export const getAllWarehouseList = params => request.get('/api/warehouse/list', { params })
